package cn.lili.modules.store.serviceimpl;

import cn.lili.common.vo.PageVO;
import cn.lili.modules.store.entity.dos.Market;
import cn.lili.modules.store.entity.vos.MarketSearchParams;
import cn.lili.modules.store.mapper.MarketMapper;
import cn.lili.modules.store.service.MarketService;
import cn.lili.mybatis.util.PageUtil;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class MarketServiceImpl extends ServiceImpl<MarketMapper, Market> implements MarketService {
    @Override
    public IPage<Market> findByConditionPage(MarketSearchParams entity, PageVO page) {
        return this.baseMapper.getMarketList(PageUtil.initPage(page), entity.queryWrapper());
    }
}
